package com;

import com.bootdo.common.datasoures.DynamicDataSourceRegister;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@EnableScheduling
@EnableTransactionManagement
@ServletComponentScan
@MapperScan("com.**.dao")
@EnableCaching
@SpringBootApplication
//@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class})
//@PropertySource("classpath:config.properties")
@EnableAspectJAutoProxy
//@Import({DynamicDataSourceRegister.class}) // 注册动态多数据源
public class BootdoApplication {
    public static void main(String[] args) {
        SpringApplication.run(BootdoApplication.class, args);
//        System.out.println("ヾ(◍°∇°◍)ﾉﾞ    bootdo启动成功      ヾ(◍°∇°◍)ﾉﾞ\n" +
//                " ______                    _   ______            \n" +
//                "|_   _ \\                  / |_|_   _ `.          \n" +
//                "  | |_) |   .--.    .--. `| |-' | | `. \\  .--.   \n" +
//                "  |  __'. / .'`\\ \\/ .'`\\ \\| |   | |  | |/ .'`\\ \\ \n" +
//                " _| |__) || \\__. || \\__. || |, _| |_.' /| \\__. | \n" +
//                "|_______/  '.__.'  '.__.' \\__/|______.'  '.__.'  ");

        System.out.println("ヾ(◍°∇°◍)ﾉﾞ 雄帝物流系统 启动成功 ヾ(◍°∇°◍)ﾉﾞ\n" +
                "         _                                 _   _ \n" +
                "        (_)                               | | (_)\n" +
                " __  __  _    ___    _ __     __ _      __| |  _ \n" +
                " \\ \\/ / | |  / _ \\  | '_ \\   / _` |    / _` | | |\n" +
                "  >  <  | | | (_) | | | | | | (_| |   | (_| | | |\n" +
                " /_/\\_\\ |_|  \\___/  |_| |_|  \\__, |    \\__,_| |_|\n" +
                "                              __/ |              \n" +
                "                             |___/               \n");
    }
}
